import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI, { size: 'small' });
// 全局样式
import '@/assets/css/index.scss';
import '@/assets/css/style.scss';
// 全局组件
import Components from '@/components';
Vue.use(Components)

// 自定义指令
import directive from './directive'
Vue.use(directive)

// 全局混入公共方法
import Mixin from '@/mixin';
Vue.mixin(Mixin)

// mork
import '@/mockjs'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
